import http from "../utils/request"
export let getCaptchaApi = () => http.get("/users/getCaptcha?v=next")
export let verifyCaptchaApi = captcha => http.get("/users/verifyCaptcha?captcha=" + captcha)
export let loginApi = (username, password) => http.post("/users/login", {
    username,
    password
})
export let getSmsCode = phoneNumber => http.post('/sms/send', { phoneNumber })
export let smsApi = code => http.post('/users/login?type=sms', { code })
export let getLoginLogApi = (page = 1, count = 10) => http.get(`/getloginlog?page=${page}&count=${count}`)